package com.yunxi.service.localService.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.yunxi.dao.order.OrderModifyApplyMapper;
import com.yunxi.model.order.OrderModifyApply;
import com.yunxi.order.pojo.OrderApproveCancelRespVO;
import com.yunxi.order.pojo.OrderModifyApplyReqVO;
import com.yunxi.order.pojo.OrderModifyApplyRespVO;
import com.yunxi.service.localService.OrderModifyApplyService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 订单修改申请表 服务实现类
 * </p>
 *
 * @author 
 * @since 2019-06-14
 */
@Service
public class OrderModifyApplyServiceImpl extends ServiceImpl<OrderModifyApplyMapper, OrderModifyApply> implements OrderModifyApplyService {

    @Override
    public PageInfo<OrderModifyApplyRespVO> queryOrderModifyApplyForPage(OrderModifyApplyReqVO vo, int pageNum, int pageSize) {
        PageHelper.startPage(pageNum,pageSize);
        List<OrderModifyApplyRespVO> resp = this.baseMapper.queryOrderModifyApplyForPage(vo);
        PageInfo<OrderModifyApplyRespVO> pageInfo = new PageInfo<>(resp);
        return pageInfo;
    }
}
